package com.lin.eventbus.internal;

import com.lin.eventbus.context.EventContextImpl
import java.util.concurrent.atomic.LongAdder

class BusEvent {

    var ctx: EventContextImpl? = null
    var receivedCount: LongAdder? = null
    var workerMissedCount: LongAdder? = null
    var listenerMissedCount: LongAdder? = null
    var dispatchedCount: LongAdder? = null

    internal fun clear() {
        ctx = null
        receivedCount = null
        workerMissedCount = null
        listenerMissedCount = null
        dispatchedCount = null
    }

}